decisions = {
	ruman_renaissance = {
		ai_check_interval = 120 #check only once every 120 months.
		only_playable = yes
		is_high_prio = yes
		
		potential = {
			is_playable = yes
			culture = rumi
			has_dlc = "Holy Fury"
			has_landed_title = e_roman_empire
			NOT = { government = chinese_imperial_government }
			NOT = { has_global_flag = flag_started_roman_renaissance }
			NOT = {
				has_alternate_start_parameter = { key = culture_names value = random }
			}
		}
		allow = {
			show_only_failed_conditions = yes
			OR = { 
				religion_group = muslim
				religion = hellenic_pagan
				religion = hellenic_pagan_reformed
			}
			capital_scope = { province = 333 }
			ruled_years = 10
			war = no
		}
		effect = {
			set_global_flag = flag_started_roman_renaissance
			culture = roman
			hidden_tooltip = {
				any_courtier_or_vassal = { 
					limit = { lower_tier_than = COUNT }
					culture = roman
				}
			}
			capital_scope = { culture = roman }
			custom_tooltip = {
				text = tooltip_roman_culture_starts_spreading
				hidden_tooltip = {
					any_realm_province = {
						if = {
							limit = { any_neighbor_province = { province = 333 } }
							culture = roman
						}
						if = {
							limit = { 
								culture = rumi
								NOT = { distance = { where = 333 distance = 100 } } 
							}
							random = { 
								chance = 40 
								culture = roman 
							}
						}
						if = {
							limit = { 
								culture_group = altaic
								NOT = { distance = { where = 333 distance = 200 } } 
							}
							random = { 
								chance = 20 
								culture = roman 
							}
						}
						if = {
							limit = { 
								culture_group = altaic
								NOT = { distance = { where = 333 distance = 400 } } 
							}
							random = { 
								chance = 5
								culture = roman 
							}
						}
					}
				}
			}
			hidden_tooltip = {
				if = { #Hellenic Emperor gets chance to spread Hellenism a bit alongside the culture.
					limit = { OR = { religion = hellenic_pagan religion = hellenic_pagan_reformed } }
					any_realm_province = {
						if = {
							limit = { any_neighbor_province = { province = 333 } }
							religion = ROOT
						}
						if = {
							limit = { 
								culture = roman
								NOT = { distance = { where = 333 distance = 100 } } 
							}
							random = { 
								chance = 10 
								religion = ROOT
							}
						}
						if = {
							limit = { 
								culture = roman
								NOT = { distance = { where = 333 distance = 200 } } 
							}
							random = { 
								chance = 5 
								religion = ROOT
							}
						}
					}
				}
			}
			hidden_tooltip = { #Special event if there are still enough christian provinces around (which is very likely)
				if = {
					limit = { 
						any_realm_province = { 
							religion_group = muslim
							count = 10
						} 
					}
					character_event = { id = HF.23119 days = 150 random = 50 }
				}
			}
		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 3
				religion = hellenic_pagan_reformed
			}
			modifier = {
				factor = 0.01 #Would consider it a step down.
				culture = greek
			}
		}
	}
	embrace_roman_culture = {
		ai_check_interval = 120 #check only once every 120 months.
		only_playable = yes
		
		potential = {
			is_playable = yes
			NOT = { culture = roman }
			culture_group = altaic
			has_dlc = "Holy Fury"
			NOT = { government = chinese_imperial_government }
			has_global_flag = flag_started_roman_renaissance
			NOT = {
				has_alternate_start_parameter = { key = culture_names value = random }
			}
			top_liege = { has_landed_title = e_roman_empire }
		}
		allow = {
			show_only_failed_conditions = yes
			culture_group = altaic
		}
		effect = {
			culture = roman
			hidden_tooltip = {
				any_courtier_or_vassal = { 
					limit = { lower_tier_than = COUNT }
					culture = roman
				}
			}
			capital_scope = { culture = roman }
			custom_tooltip = {
				text = tooltip_roman_culture_spreads
				hidden_tooltip = {
					any_demesne_province = {
						if = {
							limit = { any_neighbor_province = { province = 333 } }
							culture = roman
						}
						if = {
							limit = { 
								culture = rumi
								capital_scope = { NOT = { distance = { where = PREV distance = 100 } } } 
							}
							random = { 
								chance = 40 
								culture = roman 
							}
						}
						if = {
							limit = { 
								culture_group = altaic
								capital_scope = { NOT = { distance = { where = PREV distance = 200 } } } 
							}
							random = { 
								chance = 20 
								culture = roman 
							}
						}
						if = {
							limit = { 
								culture_group = altaic
								capital_scope = { NOT = { distance = { where = PREV distance = 400 } } } 
							}
							random = { 
								chance = 5
								culture = roman 
							}
						}
					}
				}
			}
			if = { #Hellenic Emperor gets chance to spread Hellenism a bit alongside the culture.
				limit = { OR = { religion = hellenic_pagan religion = hellenic_pagan_reformed } }
				hidden_tooltip = {
					any_demesne_province = {
						if = {
							limit = { any_neighbor_province = { province = 333 } }
							religion = ROOT
						}
						if = {
							limit = { 
								culture = roman
								capital_scope = { NOT = { distance = { where = PREV distance = 100 } } } 
							}
							random = { 
								chance = 10 
								religion = ROOT
							}
						}
						if = {
							limit = { 
								culture = roman
								capital_scope = { NOT = { distance = { where = PREV distance = 200 } } } 
							}
							random = { 
								chance = 5 
								religion = ROOT
							}
						}
					}
				}
			}
		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 3
				religion = hellenic_pagan_reformed
			}
			modifier = {
				factor = 3
				capital_scope = { culture = roman } 
			}
			modifier = {
				factor = 0.01 #Would consider it a step down.
				culture = greek
			}
		}
	}
}